<?php /* Smarty version 2.6.16, created on 2012-05-01 03:50:45
         compiled from registration.tpl */ ?>
<?php echo '
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="js/jQuery.functions.pack.js"></script>
<script type="text/javascript" src="js/jquery.dateLists.min.js"></script>
<script language="javascript" src="js/contact_us.js"></script>
<link rel="stylesheet" type="text/css" href="style/ui.dropdownchecklist.css" />
<link rel="stylesheet" type="text/css" href="style/jquery.dateLists.css" />
<script type="text/javascript" src="js/ui.core.js"></script>
<script type="text/javascript" src="js/ui.dropdownchecklist.js"></script>
<link rel="stylesheet" href="style/autosuggest.css" type="text/css" />
<script type="text/javascript" src="js/jquery.ausu-autosuggest.min.js"></script>


<script language="javascript">
var $ = jQuery.noConflict();
$(document).ready(function(){
      $("#s2").dropdownchecklist({ width: 150 });
      $("#s4").dropdownchecklist({ maxDropHeight: 120 });
<!-- AUTOCOMPLETE -->
    $.fn.autosugguest({  
           className: \'ausu-suggest\',
          methodType: \'POST\',
            minChars: 2,
              rtnIDs: true,
		    dataFile: \'autocomplete.php?action=populateCity\'
    });
  });	
function CheckFields()
{
  
  if($("#register-email").isEmpty())
    	 $("#register-email").attr(\'style\',\'border:1px solid #FF0000\');
  if($("#name").isEmpty())
    	 $("#name").attr(\'style\',\'border:1px solid #FF0000\');
  if($("#password1").isEmpty())
    	 $("#password1").attr(\'style\',\'border:1px solid #FF0000\');
  if($("#password2").isEmpty())
    	 $("#password2").attr(\'style\',\'border:1px solid #FF0000\');
  if($("#city").isEmpty())
    	 $("#city").attr(\'style\',\'border:1px solid #FF0000\');	
  if($("#txtCaptcha").isEmpty())	
         $("#txtCaptcha").attr(\'style\',\'border:1px solid #FF0000\');
 

		 
  if(!$("#register-email").emailCheck() || document.getElementById(\'register-email\').value==\'\' ) 
   {
    
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please Enter a Valid email");
	$("#register-email").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormFieldCheckErrorMsg\').fadeOut(2000);

    return false;
   }
    if(document.getElementById(\'name\').value==\'\')
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please enter your UserID");
	$("#name").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }
    if(document.getElementById(\'password1\').value==\'\' ) 
   {
    
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please Enter a password");
	$("#password1").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormFieldCheckErrorMsg\').fadeOut(2000);

    return false;
   }
   else
   {
        if($(\'#password1\').val().length<7)
		{
		 $(\'#FormErrorMsg\').show();
		 $(\'#FormErrorMsg\').html("Password Minimum <b>7 Characters</b>");
		 $("#password1").attr(\'style\',\'border:1px solid #FF0000\');
		 return false;
		} 
    }
    if(document.getElementById(\'password2\').value==\'\' ) 
    {
    
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please Enter confirm password");
	$("#password2").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }
   if(document.getElementById(\'password2\').value!=document.getElementById(\'password1\').value)
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Password doesn\'t match");
	$("#password2").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }
     
   if(document.getElementById(\'city\').value==\'\')
   {
    $(\'#FormErrorMsg\').show();
    $(\'#FormErrorMsg\').html("Please enter city");
	$("#city").attr(\'style\',\'border:1px solid #FF0000\');
	//$(\'#FormErrorMsg\').fadeOut(2000);
    return false;
   }     
 
  return true;
 
}

</script>
'; ?>

  
  
 <div class="right-panel">
        <h1 title="Find Student"><span>Registration</span></h1>
        <div class="clear"></div>
    
      <div class="register">
	  <div id='FormErrorMsg' style="color:red; text-align:center; padding-bottom:10px;"><?php if ($this->_tpl_vars['ermsg'] != ''): ?> <?php echo $this->_tpl_vars['ermsg'];  endif; ?> </div>
      <form name="contact" id="Contact" enctype="multipart/form-data" method='post'>
	     <fieldset>
            <label>Email :</label>
            <input name="email" type="text" id="register-email" class="con-req" value="<?php echo $this->_tpl_vars['Formval']['email']; ?>
" />
			<label>User ID :</label>
            <input name="name" id="name" type="text" value="<?php echo $this->_tpl_vars['Formval']['name']; ?>
" class="con-req" />
			<p class="clear"></p>
            <label>Password :</label>
            <input name="password1" type="password" id="password1" class="con-req" value="<?php echo $this->_tpl_vars['Formval']['password1']; ?>
" />
            <label>Confirm Password :</label>
            <input name="password2" type="password" id="password2" class="con-req" value="<?php echo $this->_tpl_vars['Formval']['password2']; ?>
" />
            <p class="clear"></p>
			
            <label>City :</label><div class="ausu-suggest">
            <input name="city" id="city" type="text" value="<?php echo $this->_tpl_vars['Formval']['city']; ?>
" class="con-req" autocomplete="off" />
			<input name="cityid" id="cityid" type="hidden"  value="" autocomplete="off" />
			</div>
            <p class="clear"></p>
			<label>Skype Id :</label>
            <input name="skype_id" id="skype_id" type="text" value="<?php echo $this->_tpl_vars['Formval']['skype_id']; ?>
" />
            <label>Language :</label>
			<select id="s2" multiple="multiple" name="language[]" class="selectbox">
			<?php unset($this->_sections['lang']);
$this->_sections['lang']['name'] = 'lang';
$this->_sections['lang']['loop'] = is_array($_loop=$this->_tpl_vars['langArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['lang']['show'] = true;
$this->_sections['lang']['max'] = $this->_sections['lang']['loop'];
$this->_sections['lang']['step'] = 1;
$this->_sections['lang']['start'] = $this->_sections['lang']['step'] > 0 ? 0 : $this->_sections['lang']['loop']-1;
if ($this->_sections['lang']['show']) {
    $this->_sections['lang']['total'] = $this->_sections['lang']['loop'];
    if ($this->_sections['lang']['total'] == 0)
        $this->_sections['lang']['show'] = false;
} else
    $this->_sections['lang']['total'] = 0;
if ($this->_sections['lang']['show']):

            for ($this->_sections['lang']['index'] = $this->_sections['lang']['start'], $this->_sections['lang']['iteration'] = 1;
                 $this->_sections['lang']['iteration'] <= $this->_sections['lang']['total'];
                 $this->_sections['lang']['index'] += $this->_sections['lang']['step'], $this->_sections['lang']['iteration']++):
$this->_sections['lang']['rownum'] = $this->_sections['lang']['iteration'];
$this->_sections['lang']['index_prev'] = $this->_sections['lang']['index'] - $this->_sections['lang']['step'];
$this->_sections['lang']['index_next'] = $this->_sections['lang']['index'] + $this->_sections['lang']['step'];
$this->_sections['lang']['first']      = ($this->_sections['lang']['iteration'] == 1);
$this->_sections['lang']['last']       = ($this->_sections['lang']['iteration'] == $this->_sections['lang']['total']);
?>
             <option value="<?php echo $this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_id']; ?>
" <?php if ($this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_id'] == '1'): ?> selected="selected" <?php endif; ?>><?php echo $this->_tpl_vars['langArr'][$this->_sections['lang']['index']]['language_name']; ?>
</option>
            <?php endfor; endif; ?>
            </select>
			 <p class="clear"></p>
			<label>Captcha :</label>
            <div style="float:left; width:180px;"><!--img src="CaptchaSecurityImages.php?characters=7" /--> <img src="captcha.php" id="captcha" />
			<br />
			<a href="javascript:;" onclick="document.getElementById('captcha').src='captcha.php?'+Math.random();document.getElementById('txtCaptcha').focus();" 
			id="change-image">Not readable? Change text.</a>
			</div>
			
            <label>Security Code :</label>
			<input name="txtCaptcha" id="txtCaptcha" type="text" value="" />
         
            <p class="clear"></p>
			<div   style="margin-top:10px;">&nbsp;</div>
            <label>&nbsp;</label>
            <input name="submit" class="submit" value="Submit" type="submit" onclick='return CheckFields()' />
            <input name="" class="cancel" value="Reset" type="reset" />
         </fieldset>
      </form>
      </div>
      <div class="clear"></div>
   </div>
  